package com.wgy.day13.Random随机产生数字;

import java.util.Random;

public class Demo05Random {
    public static void main(String[] args) {
        Random r = new Random();

        for (int i = 0; i < 100; i++) {
            int a = r.nextInt(10);//括号里的有内容意思是限定数字的范围是[0,10)
            System.out.println("获得的随机数字是:" + a);

        }
    }


}
